package com.ruoyi.common.core.domain.entity;

import java.util.List;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 区域对象 region
 * 
 * @author ruoyi
 * @date 2024-10-22
 */
public class Region extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 区域id */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 城市编码 */
    @Excel(name = "城市编码")
    private String cityCode;

    /** 区域名称 */
    @Excel(name = "区域名称")
    private String name;

    /** 负责人名称 */
    @Excel(name = "负责人名称")
    private String managerName;

    /** 负责人电话 */
    @Excel(name = "负责人电话")
    private String managerPhone;

    /** 是否启用，0草稿,1禁用，2启用 */
    @Excel(name = "是否启用，0草稿,1禁用，2启用")
    private Long activeStatus;

    /** 排序字段 */
    private Long sortNum;

    /** 区域业务配置信息 */
    private List<ConfigRegion> configRegionList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCityCode(String cityCode) 
    {
        this.cityCode = cityCode;
    }

    public String getCityCode() 
    {
        return cityCode;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setManagerName(String managerName) 
    {
        this.managerName = managerName;
    }

    public String getManagerName() 
    {
        return managerName;
    }
    public void setManagerPhone(String managerPhone) 
    {
        this.managerPhone = managerPhone;
    }

    public String getManagerPhone() 
    {
        return managerPhone;
    }
    public void setActiveStatus(Long activeStatus) 
    {
        this.activeStatus = activeStatus;
    }

    public Long getActiveStatus() 
    {
        return activeStatus;
    }
    public void setSortNum(Long sortNum) 
    {
        this.sortNum = sortNum;
    }

    public Long getSortNum() 
    {
        return sortNum;
    }

    public List<ConfigRegion> getConfigRegionList()
    {
        return configRegionList;
    }

    public void setConfigRegionList(List<ConfigRegion> configRegionList)
    {
        this.configRegionList = configRegionList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cityCode", getCityCode())
            .append("name", getName())
            .append("managerName", getManagerName())
            .append("managerPhone", getManagerPhone())
            .append("activeStatus", getActiveStatus())
            .append("sortNum", getSortNum())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("configRegionList", getConfigRegionList())
            .toString();
    }
}
